package com.szmd.gradle.api;

import com.szmd.gradle.tasks.SendMsgToDingTalkTask;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * created by : chentl
 * Date: 2021/01/07
 */
public interface DingTalkInterface {

    @POST("robot/send")
    Call<ResponseBody> sendMsgToDingTalk(@Query("access_token") String accessToken,
                                         @Body SendMsgToDingTalkTask.DingMsg dingMsg
    );
}
